﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace PDFSignature.Models
{

    public class ApiResponse
    {
        public ApiResponse() { }

        public ApiResponse(string errMsg)
        {
            Succeed = false;
            ErrMsg = errMsg;
        }

        public ApiResponse(bool succee, string errMsg)
        {
            Succeed = succee;
            ErrMsg = errMsg;
        }

        public bool Succeed { set; get; }

        public string ErrMsg { set; get; }
    }


    public class ApiResponse<T>: ApiResponse
    {
        public T Data { set; get; }
    }



}
